package com.dirk.happie.beans;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

public class CompanyBean implements Parcelable {

	@SerializedName("idcompany")
	private String companyId;

	@SerializedName("passwd")
	private String companyPassword;

	@SerializedName("company_name")
	private String companyName;

	@SerializedName("address")
	private String companyAddress;

	@SerializedName("zip")
	private String companyZip;

	@SerializedName("city")
	private String companyCity;

	@SerializedName("country")
	private String companyCountry;

	@SerializedName("phone")
	private String companyPhone;

	@SerializedName("email")
	private String companyEmail;

	@SerializedName("logo")
	private String companyLogo;

	@SerializedName("website")
	private String companyWebsite;

	@SerializedName("pos_x")
	private String companyPosX;

	@SerializedName("pos_y")
	private String companyPosY;

	@SerializedName("contact_name")
	private String companyContactName;

	@SerializedName("contact_surname")
	private String companyContactSurname;

	@SerializedName("contact_gender")
	private String companyContactGender;
	
	public CompanyBean(){
		
	}

	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	public String getCompanyPassword() {
		return companyPassword;
	}

	public void setCompanyPassword(String companyPassword) {
		this.companyPassword = companyPassword;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getCompanyAddress() {
		return companyAddress;
	}

	public void setCompanyAddress(String companyAddress) {
		this.companyAddress = companyAddress;
	}

	public String getCompanyZip() {
		return companyZip;
	}

	public void setCompanyZip(String companyZip) {
		this.companyZip = companyZip;
	}

	public String getCompanyCity() {
		return companyCity;
	}

	public void setCompanyCity(String companyCity) {
		this.companyCity = companyCity;
	}

	public String getCompanyCountry() {
		return companyCountry;
	}

	public void setCompanyCountry(String companyCountry) {
		this.companyCountry = companyCountry;
	}

	public String getCompanyPhone() {
		return companyPhone;
	}

	public void setCompanyPhone(String companyPhone) {
		this.companyPhone = companyPhone;
	}

	public String getCompanyEmail() {
		return companyEmail;
	}

	public void setCompanyEmail(String companyEmail) {
		this.companyEmail = companyEmail;
	}

	public String getCompanyLogo() {
		return companyLogo;
	}

	public void setCompanyLogo(String companyLogo) {
		this.companyLogo = companyLogo;
	}

	public String getCompanyWebsite() {
		return companyWebsite;
	}

	public void setCompanyWebsite(String companyWebsite) {
		this.companyWebsite = companyWebsite;
	}

	public String getCompanyPosX() {
		return companyPosX;
	}

	public void setCompanyPosX(String companyPosX) {
		this.companyPosX = companyPosX;
	}

	public String getCompanyPosY() {
		return companyPosY;
	}

	public void setCompanyPosY(String companyPosY) {
		this.companyPosY = companyPosY;
	}

	public String getCompanyContactName() {
		return companyContactName;
	}

	public void setCompanyContactName(String companyContactName) {
		this.companyContactName = companyContactName;
	}

	public String getCompanyContactSurname() {
		return companyContactSurname;
	}

	public void setCompanyContactSurname(String companyContactSurname) {
		this.companyContactSurname = companyContactSurname;
	}

	public String getCompanyContactGender() {
		return companyContactGender;
	}

	public void setCompanyContactGender(String companyContactGender) {
		this.companyContactGender = companyContactGender;
	}
	
	public CompanyBean(Parcel dest){
		companyId = dest.readString();
		companyPassword = dest.readString();
		companyName = dest.readString();
		companyAddress = dest.readString();
		companyZip = dest.readString();
		companyCity = dest.readString();
		companyCountry = dest.readString();
		companyPhone = dest.readString();
		companyEmail = dest.readString();
		companyLogo = dest.readString();
		companyWebsite = dest.readString();
		companyPosX = dest.readString();
		companyPosY = dest.readString();
		companyContactName = dest.readString();
		companyContactSurname = dest.readString();
		companyContactGender = dest.readString();
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(companyId);
		dest.writeString(companyPassword);
		dest.writeString(companyName);
		dest.writeString(companyAddress);
		dest.writeString(companyZip);
		dest.writeString(companyCity);
		dest.writeString(companyCountry);
		dest.writeString(companyPhone);
		dest.writeString(companyEmail);
		dest.writeString(companyLogo);
		dest.writeString(companyWebsite);
		dest.writeString(companyPosX);
		dest.writeString(companyPosY);
		dest.writeString(companyContactName);
		dest.writeString(companyContactSurname);
		dest.writeString(companyContactGender);
	}

	public static final Parcelable.Creator<CompanyBean> CREATOR = new Parcelable.Creator<CompanyBean>() {
		public CompanyBean createFromParcel(Parcel in) {
			return new CompanyBean(in);
		}

		public CompanyBean[] newArray(int size) {
			return new CompanyBean[size];
		}
	};
}
